package com.qf.interfacedemo;

/**
 * 让dog成为飞行员
 */
public class Dog extends Animal implements Swimable{

    @Override
    public void sleep() {
        System.out.println("dog sleep");
    }

    @Override
    public void eat() {
        System.out.println("dog 吃骨头");
    }

    @Override
    public void fly() {
        System.out.println("前滚翻");
    }

    public void lookHome(){
        System.out.println("dog 在砍价");
    }

    @Override
    public void swim() {
        System.out.println("dog游泳");
    }

}
